<div class="sf_admin_list">
<?php //if (!$pager->getNbResults()): ?>
<!--    <p>--><?php //echo __('没有视频组', array(), 'sf_admin') ?><!--</p>-->
<?php //else: ?>
    <table cellspacing="0" cellpadding='4' border='1' style="width:100%;color:#333333;border-collapse:collapse;">
        <thead>
        <tr style="color:White;background-color:#5D7B9D;font-weight:bold;height:25px;">
            <th id="sf_admin_list_batch_actions"><input id="sf_admin_list_batch_checkbox" type="checkbox"
                                                        onclick="checkAll();"/></th>
        <?php include_partial('videoGroup/list_th_tabular', array('sort' => $sort)) ?>
            <th id="sf_admin_list_th_actions"><?php echo __('操作', array(), 'sf_admin') ?></th>
        </tr>
        </thead>
        <tfoot>
        <tr>
            <th colspan="8">
            <?php if ($pager->haveToPaginate()): ?>
            <?php include_partial('videoGroup/pagination', array('pager' => $pager)) ?>
            <?php endif; ?>

            <?php echo format_number_choice('[0] 没有记录|[1] 1 条记录|(1,+Inf] %1% 条记录', array('%1%' => $pager->getNbResults()), $pager->getNbResults(), 'sf_admin') ?>
            <?php if ($pager->haveToPaginate()): ?>
            <?php echo __('(page %%page%%/%%nb_pages%%)', array('%%page%%' => $pager->getPage(), '%%nb_pages%%' => $pager->getLastPage()), 'sf_admin') ?>
            <?php endif; ?>
            </th>
        </tr>
        </tfoot>
        <tbody>
        <?php foreach ($pager->getResults() as $i => $video_group): $odd = fmod(++$i, 2) ? 'odd' : 'even' ?>
        <tr >
        <?php include_partial('videoGroup/list_td_batch_actions', array('video_group' => $video_group, 'helper' => $helper)) ?>
        <?php include_partial('videoGroup/list_td_tabular', array('video_group' => $video_group)) ?>
        <?php include_partial('videoGroup/list_td_actions', array('video_group' => $video_group, 'helper' => $helper)) ?>
        </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
<?php //endif; ?>
</div>
<script type="text/javascript">
    /* <![CDATA[ */
    function checkAll() {
        var boxes = document.getElementsByTagName('input');
        for (var index = 0; index < boxes.length; index++) {
            box = boxes[index];
            if (box.type == 'checkbox' && box.className == 'sf_admin_batch_checkbox') box.checked = document.getElementById('sf_admin_list_batch_checkbox').checked
        }
        return true;
    }
    /* ]]> */
</script>
